﻿using TableTop.DataManagement.Addon;
using TableTop.DataManagement.IO;

namespace TableTop.Presentation
{
    /// <summary>
    /// Helps accessing data in a single way
    /// </summary>
    public static class DataHelper
    {
        public static AddonManager Addons
        {
            get
            {
                App CurrentApp = null;

                CurrentApp = (App)App.Current;
                return CurrentApp.Addons;
            }
        }

        public static Storage DataStorage
        {
            get
            {
                App CurrentApp = null;

                CurrentApp = (App)App.Current;
                return CurrentApp.DataStorage;
            }
        }
    }
}
